var xmlhttp
function completionWindow()
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
{  
alert ("Your browser does not support AJAX!");  
return;  
}
var completion = document.getElementById('cmbcompletion').value;
var url="reminderAjax.php";
url=url+"?completion="+completion;
xmlhttp.onreadystatechange=stateChangedRem;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}

function stateChangedRem()
{
if (xmlhttp.readyState==4)  
{  
var my_array = eval(xmlhttp.responseText);  
var cmbObj = document.getElementById('cmbType')  
var listObj = document.getElementById('listType')  
cmbObj.length = 0;  
listObj.length = 0;  
for(var val in my_array)  
{    
var val_type = my_array[val];    
var x = document.createElement('option');    
var y = document.createElement('option');        
if(val_type.length>1)    
{    
y.text = val_type;    
y.value = val_type;    
x.text = val_type;    
x.value = val_type;    
try    
{    
cmbObj.add(y,null); // standards compliant    listObj.add(x,null); // standards compliant    
}    
catch(ex)    
{    
cmbObj.add(y); // IE only    listObj.add(x); // standards complian    
}    
}  
}  
}
}
function GetXmlHttpObject()
{
if (window.XMLHttpRequest)
{  
return new XMLHttpRequest();  
}
if (window.ActiveXObject)  
{  
return new ActiveXObject("Microsoft.XMLHTTP");  
}
return null;
}